<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>DHTML</title>

    <script type="text/javascript">
    //<![CDATA[
        window.onload = function() {
            setTimeout("changeCSS()", 3000);
        }

        function changeCSS() {
            var div = document.getElementById("div1");
            div.style.backgroundColor = "#f00";
            div.style.width = "500px";
            div.style.color = "#fff";
            div.style.height = "200px";
            div.style.paddingLeft = "50px";
            div.style.paddingTop = "50px";
            div.style.fontFamily = "Verdana";
            div.style.borderColor = "#000";
        }
        

    //]]>

    </script>
    
</head>
<body>
    <div id="div1">
        <p>
           Hello CSS    
        </p>

    </div>

</body>
</html>
